/**
 * @Author:  renyc
 * @Date: 2022年12月22日13:29:37
 */
'use strict';

class Tooltip{
    constructor(){
        this._option = {
            trigger: 'axis',
            axisPointer: {
                type: 'cross',
                animation: false,
                label: {
                    backgroundColor: '#505765'
                }
            }
        }
    }

    get option(){
        return this._option;
    }

    get trigger(){
        return this._option.trigger;
    }

    set trigger(value){
        this._option.trigger = value;
    }

    get pointerType(){
        return this._option.axisPointer.type;
    }

    set pointerType(value){
        this._option.axisPointer.type = value;
    }

    get backgroundColor(){
        return this._option.axisPointer.backgroundColor;
    }

    set backgroundColor(value){
        this._option.axisPointer.backgroundColor = value;
    }
}

export default Tooltip;